import request from '../../utils/request';
import axios from 'axios';
//获取项目预约列表
export function getSubscribeList() {
  return request({
    url: '/project',
    method: 'get',
  });
}

//添加项目预约
export function addSubscribe(data) {
  return request({
    url: '/project',
    method: 'post',
    data,
  });
}

//删除项目预约
export function delSubscribe(id) {
  return request({
    url: `/project/${id}`,
    method: 'delete',
  });
}

//修改项目预约
export function changeSubscribe(id, data) {
  return request({
    url: `/project/${id}`,
    method: 'patch',
    data,
  });
}

//搜索项目预约
export function searchSubscribe(value) {
  return request({
    url: `/project?title_like=${value}`,
    method: 'get',
  });
}
